#define _CRT_SECURE_NO_WARNINGS 1
#include<iostream>
using namespace std;





class Base1 
{
public: 
	int _b1; 
};

class Base2 { public: int _b2; };

class Derive : public Base1, public Base2
{
public: int _d;
};



int main() {



	Derive d;

	Base1* p1 = &d;

	Base2* p2 = &d;

	Derive* p3 = &d;



	cout << p1 << endl;
	cout << p2 << endl;
	cout << p3 << endl;
	return 0;


}
